package br.icmc.contact;

import br.icmc.flexinterface.InteractionLogging;
import android.app.Activity;
import android.os.Bundle;

public class InteractionLoggingActivity extends Activity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // The activity is being created.
        //InteractionLogging.getInstance().log(InteractionLogging.ONCREATE, this.getClass().getSimpleName());
    }
    
	@Override
    protected void onStart() {
        super.onStart();
        // The activity is about to become visible.
        //InteractionLogging.getInstance().log(InteractionLogging.ONSTART, this.getClass().getSimpleName());
    }
    
    @Override
    protected void onResume() {
        super.onResume();
        // The activity has become visible (it is now "resumed").
        InteractionLogging.getInstance().log(InteractionLogging.ONRESUME, this.getClass().getSimpleName());
    }
    
    @Override
    protected void onPause() {
        super.onPause();
        // Another activity is taking focus (this activity is about to be "paused").
        InteractionLogging.getInstance().log(InteractionLogging.ONPAUSE, this.getClass().getSimpleName());
    }
    
    @Override
    protected void onStop() {
        super.onStop();
        // The activity is no longer visible (it is now "stopped")
        InteractionLogging.getInstance().log(InteractionLogging.ONSTOP, this.getClass().getSimpleName());
    }
    
    @Override
    protected void onDestroy() {
        super.onDestroy();
        // The activity is about to be destroyed.
        //InteractionLogging.getInstance().log(InteractionLogging.ONDESTROY, this.getClass().getSimpleName());
    }
}
